//
//  ContactBook.h
//  GolfFriend
//
//  Created by Vescky on 14-2-24.
//  Copyright (c) 2014年 vescky.org. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseDao.h"
#import "DB.h"

@interface ContactBook : BaseDao {
    
}

+ (id)shareContactBook;

//更新所有
- (bool)refreshFriendList:(NSMutableArray*)_arr;

//保存，更新
- (bool)saveFriend:(NSDictionary*)_dict;
- (bool)saveFriendList:(NSMutableArray*)arr;

- (bool)saveBlack:(NSDictionary*)_dict;
- (bool)saveBlackList:(NSMutableArray*)arr;

- (bool)saveVisitor:(NSDictionary*)_dict;
- (bool)saveVisitorList:(NSMutableArray*)arr;

- (NSMutableArray*)getFriendList;
- (NSMutableDictionary*)getUserInfo:(NSString*)_uId;

- (bool)changeToBlackList:(NSString*)_uId;
- (bool)changeToFriendList:(NSString*)_uId;

- (bool)deleteFriend:(NSString*)_uId;

- (bool)isFriendExist:(NSString*)_uId;

@end
